<extend name="Base:base" />
<block name="title">{$title}</block>
<block name="content">
    <form action="{:U('Admin/Submenu/editDo')}" method="post">
        <table class="table">
            <tr>
                <th>子菜单名</th>
                <td> <input type="hidden" value="{$submenu.id}" name="id" /><input type="text" value="{$submenu.name}" name="name"/></td>
                <th>子菜单类型</th>
                <td>{$submenu.type_name_submenu}</td>
            </tr>
            <tr>
                <th>父菜单名</th>
                <td>{$submenu.name_menu}</td>
                <th>父菜单类型</th>
                <td>{$submenu.type_name_menu}</td>
            </tr>
            <tr>
                <th>父菜单是否导航显示</th>
                <td><if condition="$submenu.is_nav eq 0">不显示<else />显示</if></td>
                <th>父菜导航排序</th>
                <td>{$submenu.nav_order}</td>
            </tr>
            <tr>
                <th>父菜单是否底部显示</th>
                <td><if condition="$submenu.is_foot eq 0">不显示<else />显示</if></td>
                <th>父菜底部排序</th>
                <td>{$submenu.foot_order}</td>
            </tr>
            <tr>
                <th>是否开启子菜单</th>
                <td>
                    <input type="radio" name="is_active" value="1" <if condition="$submenu['is_active'] eq 1"> checked="checked" </if>/>开启
                    <input type="radio" name="is_active" value="0" <if condition="$submenu['is_active'] eq 0"> checked="checked"</if> />不开启
                </td>
            <th>在父菜单中排序</th>
            <td><input type="text"  name="sort_order" value="{$submenu.sort_order}" /></td>
            </tr>
        </table>
        <input type="submit" value="保存修改菜单"/>
    </form>
</block>